﻿#ifndef _GRAVITY_OBJECT_H_
#define _GRAVITY_OBJECT_H_

#include "object.h"
#include "config.h"

class CGravityObject :  public CObject
{
protected:
	float _g; //Gia tốc trọng trường
	float _vyo; //Vận tốc 
	float _y_pre; //Xét độ cao
	bool _on_air;
	int _time_y;
	DWORD _time_start_y;

public:
	CGravityObject(LPD3DXSPRITE SpriteHandler, float XHandle, float YHandle, int ScreenWidth, int ScreenHeight);
	
protected:
	void _ObjectWithGravity();
	void _FallDown();
};
#endif